class UserTokenModel {
  int? userId;
  String? accessToken;
  String? refreshToken;
  int? expiresTime;

  UserTokenModel({
    this.userId,
    this.accessToken,
    this.refreshToken,
    this.expiresTime,
  });

  factory UserTokenModel.fromJson(Map<String, dynamic> json) {
    return UserTokenModel(
      userId: json['userId'] as int?,
      accessToken: json['accessToken'] as String?,
      refreshToken: json['refreshToken'] as String?,
      expiresTime: json['expiresTime'] as int?,
    );
  }

  Map<String, dynamic> toJson() => {
        'userId': userId,
        'accessToken': accessToken,
        'refreshToken': refreshToken,
        'expiresTime': expiresTime,
      };
}
